<script setup lang="ts"></script>

<template>
  <h1 class="name"><span class="clip">Qing-Design组件库</span></h1>
  <p class="text">基于Vue3的组件库</p>
  <p class="tagline">掌握vue3组件编写</p>
</template>

<style scoped lang="scss">
.name {
  background: linear-gradient(
    315deg,
    #123579 1%,
    #2966cc 10%,
    #80b5ff 50%,
    #2966cc 90%,
    #123579 99%
  );
  // background: linear-gradient(315deg, #80b5ff 10%, #2966cc 50%, #123597 90%);
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradient 5s ease infinite;
  background-size: 400% 400%;
}
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.name,
.text {
  max-width: 392px;
  letter-spacing: -0.4px;
  line-height: 40px;
  font-size: 32px;
  font-weight: 700;
  white-space: pre-wrap;
}
@media (min-width: 640px) {
  .name,
  .text {
    max-width: 576px;
    line-height: 56px;
    font-size: 48px;
  }
}
@media (min-width: 960px) {
  .name,
  .text {
    line-height: 64px;
    font-size: 56px;
  }
}
.tagline {
  padding-top: 8px;
  max-width: 392px;
  line-height: 28px;
  font-size: 18px;
  font-weight: 500;
  white-space: pre-wrap;
  color: var(--vp-c-text-2);
}

@media (min-width: 640px) {
  .tagline {
    padding-top: 12px;
    max-width: 576px;
    line-height: 32px;
    font-size: 20px;
  }
}
@media (min-width: 960px) {
  .tagline {
    line-height: 36px;
    font-size: 24px;
  }
}
</style>
